<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->

<?php 
global $CFG;
$url_template=$CFG->config['base_url']."template/default/";
?>
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title><?php echo $title?></title>
        <meta name="description" content="<?php echo $description?>"/>
        <meta name="keywords" content="<?php echo $keywords?>">
        <meta name="viewport" content="width=device-width"/>
        <link href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css" rel="stylesheet">
        <link rel="stylesheet" href="<?php echo $url_template?>css/main.css">
        
        <!--[if lt IE 9]>
            <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
            <script>window.html5 || document.write('<script src="<?php echo $url_template?>js/vendor/html5shiv.js"><\/script>')</script>
        <![endif]-->
    </head>
    <body>
        <!--[if lt IE 7]>
            <p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
        <![endif]-->

        <!-- This code is taken from http://twitter.github.com/bootstrap/examples/hero.html -->

        <div class="navbar navbar-inverse navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container">
                    <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </a>
                    <div class="brand pull-left">
	                    <a class="btn btn-warning btn-deposer" href="<?php echo $CFG->config['base_url']?>annonce/deposer"  data-placement="bottom" data-toggle="tooltip" data-original-title="Publier une petite annonce gratuite">
	                    Déposez une annonce<br/>  GRATUITEMENT
	                    </a>
                    </div>
                    <div class="nav-collapse collapse pull-right">
                        <menu class="nav ">
                            <?php echo $menu_category?>
                        </menu>
                    </div>
                    <!--/.nav-collapse -->
                </div>
            </div>
        </div>

        <div class="container">
			<div class="header row-fluid">
            	<a itemprop="image" class="span3" href="<?php echo $CFG->config['base_url']?>"  alt="logo caverne" > <img src="<?php echo $url_template?>img/logo.png"  alt="logo caverne"   title="logo caverne.fr"/><br/>
                	<span class="slogan">Une idée, une trouvaille !</span>
                </a>
                <div class="span9">
	                <nav class="pull-right">
		                <ul class=" pull-right">
		                    <li class="btn btn-primary btn-small <?php echo $nav_class['offre']?>" ><a href="<?php echo $CFG->config['base_url']?>annonce/offre"><span class="icon-star-empty icon-white"></span> OFFRE</a></li>
		                    <li class="btn btn-primary btn-small <?php echo $nav_class['demande']?>" ><a href="<?php echo $CFG->config['base_url']?>annonce/demande"><span class="icon-eye-open icon-white"></span> DEMANDE</a></li>
		                    <!-- <li class="btn btn-info btn-small <?php echo $nav_class['deposer']?>" ><a href="<?php echo $CFG->config['base_url']?>annonce/deposer"><span class="icon-file icon-white"></span> Déposer Une Annonce</a></li> -->
		                    <li class="btn  btn-info btn-small <?php echo $nav_class['boutique']?>" ><a href="<?php echo $CFG->config['base_url']?>boutique"><span class="icon-certificate icon-white"></span> Boutiques</a></li>
		                    <li class="btn  btn-info btn-small <?php echo $nav_class['boutique']?>" ><a href="<?php echo $CFG->config['base_url']?>boutique/creer"><span class="icon-certificate icon-white"></span> Créer ma boutique</a></li>
							<li class="btn btn-warning btn-small <?php echo $nav_class['mes_annonces']?>"><a href="<?php echo $CFG->config['base_url']?>annonce/mes_annonces"><span class="icon-download-alt"></span> Mes annonces</a><span id="nb_annonces"></span></li>
		                    <!-- <li class="btn btn-warning btn-small <?php echo $nav_class['aides']?>"><a href="<?php echo $CFG->config['base_url']?>Aides.html"><span class="icon-question-sign"></span> Aides</a></li> -->
		                </ul>
	                </nav>
                
                <form class="form-inline pull-right text-right"  action="<?php echo $CFG->config['base_url']?>boutique"  method="post" id="form_rechercher">
	                
	                	<input class="search-query" placeholder="Tapez le nom de la boutique !" type="search" name="search" value="<?php echo $search?>" />
		                <select class="search-query"  name="search_category">
					                	<option value="">Toutes les activités</option>
					                	<?php echo $search_category?>
					    </select>
					    <select class="search-query"  id="search_region" name="search_region">
					                	<option value="">Toutes les régions</option>
					                	<?php echo $regionList?>
					     </select>
					     <input class="span1" id="search_code_postal" placeholder="Code postal ou ville" type="search" name="search_cp" list="search_cp"  value="<?php echo $code_postal?>"/>
			                    <datalist id="search_cp">
			                    <?php echo $villeList?>
								</datalist>
						<input type="submit" value="OK" class="btn"/>
	            </form>
                </div>
            </div>
        	<div class="clear"></div>
        	
        